const mongoose = require('mongoose');
const mongoosePageinate = require('mongoose-paginate')
var schema = new mongoose.Schema({
    name: String, //姓名
    age: Number, //年龄
    sex: String, //性别
    Tel: Number, //电话
    QQ: Number, //QQ号
    Idcard: Number, //证件号
    email: String, //邮箱
    address: String, //地址
    hobby: String, //爱好（做成在线编辑器）
    education: String, //学历
    password: String,
})
schema.plugin(mongoosePageinate);
module.exports = mongoose.model('User', schema, 'myuser');